USE [SONALIKA_BGK_UPDATED]
GO

/****** Object:  Table [dbo].[TRACTOR_MODELS]    Script Date: 13-May-14 1:04:40 AM ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[TRACTOR_MODELS](
	[TRACTOR_MODEL_ID] [int] IDENTITY(1,1) NOT NULL,
	[TRACTOR_MODEL_NAME] [varchar](50) NOT NULL,
	[TRACTOR_SHOWROOMRATE] [decimal](18, 2) NOT NULL,
	[TRACTOR_IMAGE] [varbinary](max) NULL,
	[TRACTOR_TYRE_MAKER] [varchar](50) NULL,
	[TRACTOR_BATTERY_MAKER] [varchar](50) NULL,
	[TRACTOR_TYRE_SIZE_F] [int] NULL,
	[TRACTOR_TYRE_SIZE_R] [int] NULL,
	[TRACTOR_STATUS] [int] NOT NULL,
 CONSTRAINT [PK_TRACTOR_MODELS] PRIMARY KEY CLUSTERED 
(
	[TRACTOR_MODEL_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[TRACTOR_MODELS]  WITH CHECK ADD  CONSTRAINT [FK_TRACTOR_MODELS_MASTER] FOREIGN KEY([TRACTOR_STATUS])
REFERENCES [dbo].[MASTER] ([MASTER_ID])
GO

ALTER TABLE [dbo].[TRACTOR_MODELS] CHECK CONSTRAINT [FK_TRACTOR_MODELS_MASTER]
GO


